class BodyFatDataModel{
  final double? bmi;
  final double? bfr;
  final double? sfr;
  final int? uvi;
  final double? rom;
  final int? bmr;
  final double? bm;
  final double? vwc;
  final int? bodyAge;
  final double? pp;

  BodyFatDataModel({this.bmi, this.bfr, this.sfr, this.uvi, this.rom, this.bmr,
    this.bm, this.vwc, this.bodyAge, this.pp});

  Map<String, dynamic> toJson() {
    return {
      'bmi': this.bmi,
      'bfr': this.bfr,
      'sfr': this.sfr,
      'uvi': this.uvi,
      'rom': this.rom,
      'bmr': this.bmr,
      'bm': this.bm,
      'vwc': this.vwc,
      'bodyAge': this.bodyAge,
      'pp': this.pp,
    };
  }

  factory BodyFatDataModel.fromJson(Map<dynamic, dynamic> map) {
    return BodyFatDataModel(
      bmi: map['bmi'] as double,
      bfr: map['bfr'] as double,
      sfr: map['sfr'] as double,
      uvi: map['uvi'] as int,
      rom: map['rom'] as double,
      bmr: map['bmr'] as int,
      bm: map['bm'] as double,
      vwc: map['vwc'] as double,
      bodyAge: map['bodyAge'] as int,
      pp: map['pp'] as double,
    );
  }

}